package com.smart.model.dtomapper;

import com.smart.model.domain.ManageUserRegistrationDO;
import com.smart.model.request.ManageUserRegistrationRequest;
import com.smart.model.vo.ManageUserRegistrationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ManageUserRegistrationDtoMapper {

    ManageUserRegistrationDtoMapper INSTANCE = Mappers.getMapper(ManageUserRegistrationDtoMapper.class);

    /**
    * DO to VO
    * @param manageUserRegistrationDO
    * @return
    */
    ManageUserRegistrationVO do2VO(ManageUserRegistrationDO manageUserRegistrationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ManageUserRegistrationDO request2DO(ManageUserRegistrationRequest request);
}
